<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('user/index')}">{:lang('ADMIN_USER_INDEX')}</a></li>
			<li><a href="{:url('school/add')}">学校添加</a></li>
		</ul>
		<form class="well form-inline margin-top-20" method="get" action="{:url('School/index')}">
			学校名:
			<input type="text" class="form-control" name="name" style="width: 120px;" value="{:input('request.name/s','')}" placeholder="请输入学校名">

			<input type="submit" class="btn btn-primary" value="搜索" />
			<a class="btn btn-danger" href="{:url('School/index')}">清空</a>
		</form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th>学校名称</th>
					<th>省份</th>
					<th>市</th>
					<th>区县</th>
					<th>街道</th>
					<th width="140">{:lang('ACTIONS')}</th>
				</tr>
			</thead>
			<tbody>

				<foreach name="school" item="vo">
				<tr>
					<td>{$key+1}</td>
					<td>{$vo.name}</td>
					<td>{$vo.a}</td>
					<td>{$vo.b}</td>
					<td>{$vo.c}</td>
					<td>{$vo.address}</td>
					<td>

							<a class="btn btn-xs btn-primary" href='{:url("school/edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
							<a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('school/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>

					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>